package com.cm.caseManagement.pojo.entity;


import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 垫付明细对象 cm_advance_detail
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmAdvanceDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 案件id */
    @Excel(name = "案件id")
    private Long caseId;

    /** 事项类型：0垫款、1回款 */
    @Excel(name = "事项类型：0垫款、1回款")
    private Long itemType;

    /** 所属事项 */
    @Excel(name = "所属事项")
    private String belongItems;

    /** 操作人id（上传人） */
    @Excel(name = "操作人id", readConverterExp = "上=传人")
    private Long operatorId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 支付凭证（存附件id列表） */
    @Excel(name = "支付凭证", readConverterExp = "存=附件id列表")
    private String payVoucher;

    /** 付款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setItemType(Long itemType)
    {
        this.itemType = itemType;
    }

    public Long getItemType()
    {
        return itemType;
    }

    public void setBelongItems(String belongItems)
    {
        this.belongItems = belongItems;
    }

    public String getBelongItems()
    {
        return belongItems;
    }

    public void setOperatorId(Long operatorId)
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId()
    {
        return operatorId;
    }

    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    public void setPayVoucher(String payVoucher)
    {
        this.payVoucher = payVoucher;
    }

    public String getPayVoucher()
    {
        return payVoucher;
    }

    public void setPayDate(Date payDate)
    {
        this.payDate = payDate;
    }

    public Date getPayDate()
    {
        return payDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("itemType", getItemType())
            .append("belongItems", getBelongItems())
            .append("operatorId", getOperatorId())
            .append("amount", getAmount())
            .append("payVoucher", getPayVoucher())
            .append("payDate", getPayDate())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
